package com.example.mode.factoryMode.simpleFactoryMode;

/**
 * Created with IntelliJ IDEA.
 * User: yf-wenhao
 * Date: 2019/3/26
 * Time: 下午3:26
 * 当需要新增类型的时候，工厂类需要改动
 */
public class SimpleFactoryTest {

    public static void main(String[] args) {
        WhiteHuman whiteHuman = Factory.create(WhiteHuman.class);

        whiteHuman.color();

        whiteHuman.talk();
    }
}
